package com.sanshi.project.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 租赁合同
 *
 * @author nikon
 * @date 2023-11-27 17:01:04
 */
@Data
@TableName("contract_lessee")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "contract_lessee")
public class ContractLesseeEntity extends Model<ContractLesseeEntity> {

    /**
     * 租户Id主键
     */
    @Schema(description = "租户Id主键")
    private Long id;
    /**
     * 租户号
     */
    @Schema(description = "租户号")
    private Long tenantId;
    /**
     * 删除标记[0未删除，1已删]
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标记[0未删除，1已删]")
    private String delFlag;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 合同Id
     */
    @Schema(description = "合同Id")
    private Long contractId;
    /**
     * 承租户类型
     */
    @Schema(description = "承租户类型")
    private String type;
    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;
    /**
     * 证件号码
     */
    @Schema(description = "证件号码")
    private String cardNo;
    /**
     * 联系方式
     */
    @Schema(description = "联系方式")
    private String phone;
    /**
     * 法人姓名
     */
    @Schema(description = "法人姓名")
    private String corporate;
    /**
     * 法人身份证号
     */
    @Schema(description = "法人身份证号")
    private String corporateIdcard;
    /**
     * 开户行
     */
    @Schema(description = "开户行")
    private String bankDeposit;
    /**
     * 银行账号
     */
    @Schema(description = "银行账号")
    private String bankAccount;
}
